<template>
  <div>
    子组件
    {{ name }} - {{ age }} - {{ gender }} - {{ love }}
  </div>
</template>

<script>
export default {
  props: {
    name: String,
    age: [Number, Boolean],
    gender: {
      type: String,
      required: true
    },
    love: {
      type: String,
      default: 'writing'
    },
    like: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style scoped></style>
